package com.wh.weibo.job;

import com.wh.weibo.facade.TopicService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @author WeiHong
 * @date 2019/7/17 16:03
 */
public class SyncDiscussCountJob implements Job {
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        TopicService topicService = (TopicService) context.getJobDetail().getJobDataMap().get("springBean");
        topicService.syncTopicDiscussCount();
    }
}
